package com.cgx.dao;

import com.cgx.entity.User.UserInfo;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author chenguanxin
 * @date 2021-06-27 17:24
 */
@Repository
public interface UserInfoDao extends MongoRepository<UserInfo, String> {

    List<UserInfo> findAllByUserIdAndIsDelete(String userId, int isDelete);

    List<UserInfo> findAllByUserIdInAndIsDelete(List<String> userIdList, int isDelete);
}
